/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.inathitunzana.principles.ispcomply.Impl;

import com.inathitunzana.principles.ispcomply.IEmailer;

/**
 *
 * @author Student
 */
public class Emailer implements IEmailer {

    String name;
    String emailAddress;
    String subject;
    String body;

    public void SetName(String name) {
       this.name = name;
    }

    public String GetName() {
        return name;
    }

    public void SetEmailAddress(String email) {
        emailAddress = email;
    }

    public String GetEmailAddress() {
        return emailAddress;
    }

    public void SetSubject(String subject) {
        this.subject = subject;
    }

    public String GetSubject() {
        return subject;
    }

    public void SetBody(String body) {
        this.body = body;
    }

    public String GetBody() {
        return body;
    }

    public String SendMessage()
    {
        return "incoming message#Name=\""+name+"\"#To=\""+emailAddress+"\"#Subject=\""+subject+"\"#Body=\""+body+"\"";
    }
}
